const path = require('path');
// 工作区目录
const srcPath = path.resolve(process.cwd(), 'src');
module.exports = {
  webpack: {
    alias: {
      '@': srcPath,
      src: srcPath,
      public: path.resolve(process.cwd(), process.env.PUBLIC_URL),
    },
  },
  style: {
    modules: {
      sass: {
        /* Any sass-loader configuration options: https://github.com/webpack-contrib/sass-loader. */
        loaderOptions: {
          additionalData: `$public: ${process.env.NODE_ENV}/$public`,
        },
      },
    },
  },
};
